/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 黎鹤舞
 * Date: 2023-11-15
 * Time: 10:21
 */


class A {
    int a = 1;
}

class B extends A {
    int b = 2;

}

class C extends B {

    int c = 3;
}

public class TestNum {

    public static void main(String[] args) {
        A a0 = new A();
        System.out.println(a0.a);
        A a1 = new B();
        System.out.println(a1.a);
        A a2 = new C();
        System.out.println(a2.a);
    }
}
